<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/22 0022
 * Time: 16:37
 */

namespace app\api\controller\v1\member;


use app\api\controller\v1\Member;

class IntegralLogs extends Member
{
    /**
     * 获取积分记录列表
     * @throws \think\Exception
     * @throws \think\db\exception\DataNotFoundException
     * @throws \think\db\exception\ModelNotFoundException
     * @throws \think\exception\DbException
     * @throws \think\exception\PDOException
     */
    public function index()
    {
        $where = [['mid','eq',$this->mid]];
        $list = $this->_query('MemberIntegralLogs')
            ->where($where)
            ->equal('type')
            ->page(true,false,false,10);
        $this->success('获取积分记录成功！',$list);
    }
}